import { post, put, get } from '@/utils/hettpUtils/httpRequest'

export const positionColumns = [
    {
        title: "名称",
        dataIndex: "name",
    },
    {
        title: "编码",
        dataIndex: "code",
    },
    {
        title: "岗位职级",
        dataIndex: "Level",
    },
    {
        title: "创建人",
        dataIndex: "createUser",
    },
    {
        align: 'center',
        title: "创建时间",
        dataIndex: "createTime",
        sorter: true,
    },
    {
        align: 'center',
        title: "状态",
        dataIndex: "status",
        scopedSlots: { customRender: "status" },
    },
    // {
    //     align: 'center',
    //     title: "是否删除",
    //     dataIndex: "deleteFlag",
    //     scopedSlots: { customRender: "deleteFlag" },
    // },
    {
        align: 'center',
        width:'160px',
        title: "操作",
        dataIndex: "action",
        scopedSlots: { customRender: "action" },
    },
];

export const addPosition = (parameter) => post('api/sysPostation/addPosition', parameter)
export const deletePosition = (parameter) => post('api/sysPostation/deletePosition', parameter)
export const updatePosition = (parameter) => put('api/sysPostation/updatePosition', parameter)
export const queryPosition = (parameter) => get('api/sysPostation/queryPosition', parameter)
export const getPosition = (parameter) => get('api/sysPostation/getPosition', parameter)
export const queryPositionSelect = (parameter) => get('api/sysPostation/queryPositionSelect', parameter)
